/*
 * @Author: Joker 
 * @Date: 2017-11-28 12:19:16 
 * @Last Modified by: Joker
 * @Last Modified time: 2018-01-03 18:36:42
 */

export default {
  ['SET_CLIENT']: (state, {
    width,
    height
  }) => {
    state.client.width = width;
    state.client.height = height;
  },
  ['SET_USERDEPT']: (state, userDept) => {
    state.userDept = userDept;
  },
  ['SET_USERREALDEPT']: (state, userRealDept) => {
    state.userRealDept = userRealDept;
  },
  ['SET_ROLELIST']: (state, roleList) => {
    state.roleList = roleList;
  },
  ['SET_ROLETREE']: (state, roleTree) => {
    state.roleTree = roleTree;
  },
  ['SET_ROLEPOWERALL']: (state, rolePowerAll) => {
    state.rolePowerAll = rolePowerAll;
  },
  ['SET_USERROLE']: (state, userRole) => {
    state.userRole = userRole;
  },
  ['SET_PROJECTID']: (state, proJectId) => {
    state.proJectId = proJectId;
  },
  ['SET_ROLEIDLIST']: (state, roleIdList) => {
    state.roleIdList = roleIdList;
  },
  ['SET_MENULIST']: (state, menuList) => {
    state.menuList = menuList;
  }
}

